import java.util.Scanner;
public class Coin
{
    public static void main (String[]args)
    {
         float fen1,fen2,fen5,jiao5,jiao1,yuan1,number;
         Scanner scan = new Scanner (System.in);
         System.out.print("Enter fen1:");
         fen1 = scan.nextInt();
         System.out.print("Enter fen2:");
         fen2 = scan.nextInt();
         System.out.print("Enter fen5:");
         fen5 = scan.nextInt();
         System.out.print("Enter jiao5:");
         jiao5 = scan.nextInt(); 
         System.out.print("Enter jiao1:");
         jiao5 = scan.nextInt();
         System.out.print("Enter yuan1:");
         yuan1 = scan.nextInt();
         yuan1 = 100*fen1;
         jiao5 = 50*fen1;
         jiao1 = 10*fen1;
         fen2 = 2*fen1;
         fen5 = 5*fen1;
         number =  yuan1 + jiao5 + jiao1 + fen2 + fen5 + fen1;
         System.out.println ("money:" + number + "fen");
   }
}
